package com.llc.gulimall.order.feign;

import com.llc.common.utils.R;
import com.llc.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author wangwei
 * 2021/1/18 18:35
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")
     List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);


    @RequestMapping("/member/memberreceiveaddress/default/{memberId}")
    R getMemberDefaultAddress(@PathVariable("memberId") Long memberId);
}
